export  function copy(text,callback){
    let clipboard = navigator.clipboard || {
        writeText: (text) => {
            let copyInput = document.createElement('input');
            copyInput.value = text;
            document.body.appendChild(copyInput);
            copyInput.select();
            document.execCommand('copy');
            document.body.removeChild(copyInput);
        }
    }
    if (clipboard) {
        clipboard.writeText(text)
        callback && callback("success","文本已成功复制到剪贴板")
    }
}